package com.expense.expenshare.client.gin;

import com.expense.expenshare.client.history.ExpenshareHistoryMapper;
import com.expense.expenshare.client.view.MainView;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.inject.client.AbstractGinModule;
import com.google.gwt.place.shared.PlaceHistoryMapper;
import com.google.inject.Singleton;

public class ExpenshareGinModule extends AbstractGinModule {
	
	@Override
	protected void configure() {
		bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);
		bind(PlaceHistoryMapper.class).to(ExpenshareHistoryMapper.class).in(Singleton.class);
		bind(MainView.class).in(Singleton.class);
	}

}
